﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace eLoan.Models
{
    [Table("Notification")]
    public class Notification : NotificationFields
    { }

    public class NotificationFields
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        [Display(Name = "ID")]
        public int ID { get; set; }

        [Required]
        [Display(Name = "Notification Name")]
        [StringLength(100)]
        public string NotificationName { get; set; }

        [Display(Name = "Description")]
        [StringLength(200)]
        public string Description { get; set; }

        [Display(Name = "Message")]
        [StringLength(500)]
        public string Message { get; set; }

        [Display(Name = "Is Active")]
        public bool IsActive { get; set; }
    }

}